וְאֵת֩ כָּל־אַנְשֵׁ֨י הַחַ֜יִל שִׁבְעַ֣ת אֲלָפִ֗ים וְהֶחָרָ֤שׁ וְהַמַּסְגֵּר֙ אֶ֔לֶף הַכֹּ֕ל גִּבּוֹרִ֖ים עֹשֵׂ֣י מִלְחָמָ֑ה וַיְבִיאֵ֧ם מֶֽלֶךְ־בָּבֶ֛ל גּוֹלָ֖ה בָּבֶֽלָה׃
און אַלע חילס-לײַט, זיבן טױזנט, און די מײַנסטערס און די שלעסערס, טױזנט, אַלע, גִבורים װאָס טױגן צו מלחמה, זײ האָט דער מלך פֿון בָבֿל געבראַכט אין גלות קײן בָבֿל.
Rashi
Seven thousand. But above he states, “ten thousand.”12Above, v. 14. The third verse comes to reconcile [the difference], in the Book of Yirmiyohu, ”This is the people whom Nevuchadnetzar exiled in the seventh year, three thousand Jews.”13Yirmiyahu 52:28. The verse there states, “three thousand and twenty-three Jews.” We deduce from here that three thousand were of the tribe of Yehudah and seven thousand were of Binyomin and the other tribes. Also in Seder Olam we learned this.
Metzudat David
Referring to the soldiers, not about the tradesmen and the gate guards.